import React, { Component } from 'react'
import {Icon} from "antd-mobile";
import {withRouter} from "react-router-dom";

//引入样式
import "./GoBack.css"

 class GoBack extends Component {
    GoBack(){
        this.props.history.go(-1);
    }
    render() {
        return (
            <div>
                <Icon  type="left" onClick={()=>this.GoBack()}></Icon>
            </div>
        )
    }
}
export default withRouter(GoBack);